//
//  ApplicationAdded.m
//  KConnect
//
//  Created on 18/03/09.
//  Copyright 2009 Xtreme Labs Inc. All rights reserved.
//

#import "KCAppAdded.h"


#define kAppAdded       @"apa"

#define kUID            @"s"
#define kTracking       @"u"
#define kShortTracking  @"su"

@implementation KCAppAdded


- (id) initWithUID: (NSString*) uid
{
  NSDictionary *required = [NSDictionary dictionaryWithObjectsAndKeys: uid, kUID,  nil];
  
  if (self = [super initWithParameters:required])
  {
    
  }
  
  return self;
}

//- (void)setTrackingTag:(NSString*)tag
//{
//  [self addOptionalParameter:kTracking value:tag];
//}
//
//- (void)setShortTrackingTag:(NSString*)tag
//{
//  [self addOptionalParameter:kShortTracking value:tag];
//}

- (NSString*)messageType
{
	return kAppAdded;
}

- (NSArray*)requiredParameters
{
	return [NSArray arrayWithObjects:
          kUID,
          nil];
  
}

- (NSArray*)optionalParameters
{
	return  [NSArray arrayWithObjects:
           kShortTracking,
           kTracking,
           nil];
}




@end
